<?php

namespace App\Models\Wechat;

use App\Models\Model;

class ReplyContent extends Model
{
    protected $casts = [
        'content'=>'array'
    ];

    protected $table = 'wechat_reply_content';

    public function getTypeName()
    {
        $name = '';
        switch ($this->type)
        {
            case 'text':
                $name = '文本';
                break;
            case 'news':
                $name = '图文';
                break;
        }
        return $name;
    }
}
